package com.itqf.Service.User.Impl;

import com.itqf.Dao.UserMapper;
import com.itqf.Service.User.UserService;

import com.itqf.entity.User;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;
import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService
{
    @Resource
    private UserMapper userMapper;



    @Override
    public void updateusergread(String userid, int gradeid) {
        Map map=new HashMap();
        map.put("userid",userid);
        map.put("gradeid",gradeid);
        userMapper.updateusergread(map);
    }

    @Override
    public User findusers(String userid) {
       return userMapper.findusers(userid);
    }

    @Override
    public String finduserandgrade(String userid) {
        return userMapper.finduserandgrade(userid);
    }


}
